<?php

namespace App\DashboardBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;

class ShopType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('name')
            ->add('parentId')
            ->add('description')
            ->add('type')
            ->add('isActive')
            ->add('createdDate')
            ->add('createdUserId')
            ->add('district')
            ->add('address')
            ->add('targetDate')
        ;
    }

    public function setDefaultOptions(OptionsResolverInterface $resolver)
    {
        $resolver->setDefaults(array(
            'data_class' => 'App\DashboardBundle\Entity\Shop'
        ));
    }

    public function getName()
    {
        return 'app_dashboardbundle_shoptype';
    }
}
